if ENABLE_PROTOCOL_IRC

ASSEMBLY_COMPILER_COMMAND = gmcs
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -debug -d:DEBUG
BUILD_DIR = ../../../build/
ASSEMBLY_NAME=Galaxium.Protocol.Irc.GtkGui
ASSEMBLY = $(BUILD_DIR)$(ASSEMBLY_NAME).dll

ASSEMBLY_WRAPPER = 
ASSEMBLY_WRAPPER_IN = 

PC_FILES =
PC_FILES_IN =

COMPILE_TARGET = library

REFERENCES =  \
	$(GLADE_SHARP_LIBS) \
	$(GLIB_SHARP_LIBS) \
	$(GTK_SHARP_LIBS) \
	-pkg:anculus-core \
	-pkg:anculus-gui \
	-r:../../../build/Galaxium.Client.dll \
	-r:../../../build/Galaxium.Client.GtkGui.dll \
	-r:../../../build/Galaxium.Core.dll \
	-r:../../../build/Galaxium.Gui.dll \
	-r:../../../build/Galaxium.Gui.GtkGui.dll \
	-r:../../../build/Galaxium.Protocol.dll \
	-r:../../../build/Galaxium.Protocol.Gui.dll \
	-r:../../../build/Galaxium.Protocol.Irc.dll \
	-r:System \
	-r:System.Xml

RESOURCES =  \
	Galaxium.Protocol.Irc.GtkGui.addin \
	Icons/large_irc-console.png \
	Icons/large_irc-console-active.png \
	Icons/large_irc-console-inactive.png \
	Icons/small_irc-channelcreator.png \
	Icons/small_irc-console.png \
	Icons/small_irc-console-active.png \
	Icons/small_irc-console-inactive.png \
	Icons/small_irc-default.png \
	Icons/small_irc-operator.png \
	Icons/small_irc-voice.png \
	Resources/AccountWidget.glade \
	Resources/AddChannelDialog.glade \
	Resources/AddContactDialog.glade \
	Resources/AddMirrorDialog.glade \
	Resources/AddNetworkDialog.glade \
	Resources/BrowseChannelsDialog.glade \
	Resources/ChatWidget.glade \
	Resources/ManageNetworksDialog.glade \
	Resources/ServerConsoleWindow.glade \
	Resources/SessionWidget.glade \
	Resources/SetBansDialog.glade \
	Resources/SetChannelModeDialog.glade \
	Resources/SetIdentityDialog.glade \
	Resources/SetPasswordDialog.glade \
	Resources/SetTopicDialog.glade \
	Resources/small_galaxium-irc.png
EXTRAS = 
DATA_FILES = 

FILES =  \
	AssemblyInfo.cs \
	Commands/ChannelContactMenuCommands.cs \
	Commands/ChannelMenuCommands.cs \
	Commands/ContactMenuCommands.cs \
	Commands/ConversationMenuCommands.cs \
	Commands/SessionMenuCommands.cs \
	ContactListTooltip.cs \
	Dialogs/AddChannelDialog.cs \
	Dialogs/AddContactDialog.cs \
	Dialogs/AddMirrorDialog.cs \
	Dialogs/AddNetworkDialog.cs \
	Dialogs/BrowseChannelsDialog.cs \
	Dialogs/ChangeBansDialog.cs \
	Dialogs/ChangeChannelModeDialog.cs \
	Dialogs/ChangeIdentityDialog.cs \
	Dialogs/ChangePasswordDialog.cs \
	Dialogs/ChangeTopicDialog.cs \
	Dialogs/ChangeUserModeDialog.cs \
	Dialogs/ManageNetworksDialog.cs \
	IrcAccountWidget.cs \
	IrcChannelContactTreeManager.cs \
	IrcChatWidget.cs \
	IrcCommandInputHandler.cs \
	IrcContactListView.cs \
	IrcContactTreeManager.cs \
	IrcProtocolFactory.cs \
	IrcSessionWidget.cs \
	Preferences/IrcPreferenceWidget.cs \
	Utilities/IrcWidgetUtility.cs \
	Windows/ServerConsoleWindow.cs

GENERATED_FILES = AssemblyInfo.cs

if ENABLE_PROTOCOL_IRC
all: $(ASSEMBLY)
else
all:
endif

$(ASSEMBLY) $(ASSEMBLY).mdb: $(build_sources) $(build_resources) $(build_datafiles) 
	mkdir -p $(dir $(ASSEMBLY))		
	$(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$@ -target:$(COMPILE_TARGET) $(build_sources) $(build_resources_embed) $(build_references_ref)

include $(top_srcdir)/Makefile.include

else
all:
endif
